package com.tjsinfo.tjsoa.documentationflow.xingzhengfawen.vo;

import java.util.Date;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Set;
import java.util.TreeSet;

//import com.tjsinfo.tjsoa.documentationflow.gonghuifawei.vo.TGonghuifaweiFujian;

/**
 * TDangweifawenNeirong entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class TXingzhengfawenNeirong implements java.io.Serializable {

	// Fields

	private String id;
	private Integer flowid;
	private String biaoti;
	private String zhusong;
	private String chaosong;
	private String chaobao;
	private String zhutici;
	private String miji;
	private String fujian;
	private Integer nigaorenid;
	private String nigaorenname;
	private String chengbanbumen;
	private String wenhaotype;
	private String wenhaonumber;
	private Date fawendatetime;
	private String jingshouren;
	private String docname;
	private String zhuangta;
	private Long taskId;
	private String fenshu;
	private Integer sortid;
	private String jingshoubumen;
	private Date qiChaoShiJian;
	private Integer isguidang;
	private Integer isDown;
	private Integer dataBaseId;
	private Integer state;
	
	private Set TXingzhengfawenYijians = new HashSet(0);
	private Set TXingzhengfawenFujians = new TreeSet();
	private Set TXingzhengfawenZhengwens = new TreeSet();
	private Set TXingzhengfawenBeizhus = new TreeSet();
//	private Set THyjyManages = new HashSet(0);
	private String wentype;
	private Integer wenhao;
	private Integer wenyear;
	private String haotype;
	private String dangqianhuanjie;
	private String temptype;
	private Integer istaohong;	
	private String fengfadate;
	// Constructors


	public String getFengfadate() {
		return fengfadate;
	}

	public void setFengfadate(String fengfadate) {
		this.fengfadate = fengfadate;
	}

	
	public Integer getDataBaseId() {
		return dataBaseId;
	}
	public void setDataBaseId(Integer dataBaseId) {
		this.dataBaseId = dataBaseId;
	}

	/** default constructor */
	public TXingzhengfawenNeirong() {
	}

	/** full constructor */
	public TXingzhengfawenNeirong(Integer flowid, String biaoti, String zhusong,
			String chaosong, String zhutici, String miji, String fujian,
			Integer nigaorenid, String nigaorenname, String chengbanbumen,
			String wenhaotype, String wenhaonumber, Date fawendatetime,
			String jingshouren, String docname, String zhuangta,Integer state,String fengfadate,
			Set TXingzhengfawenYijians, Set TXingzhengfawenFujians,Set TXingzhengfawenZhengwens,Set TXingzhengfawenBeizhus) {
		this.flowid = flowid;
		this.biaoti = biaoti;
		this.zhusong = zhusong;
		this.chaosong = chaosong;
		this.zhutici = zhutici;
		this.miji = miji;
		this.fujian = fujian;
		this.nigaorenid = nigaorenid;
		this.nigaorenname = nigaorenname;
		this.chengbanbumen = chengbanbumen;
		this.wenhaotype = wenhaotype;
		this.wenhaonumber = wenhaonumber;
		this.fawendatetime = fawendatetime;
		this.jingshouren = jingshouren;
		this.docname = docname;
		this.zhuangta = zhuangta;
		this.state = state;
		this.TXingzhengfawenYijians = TXingzhengfawenYijians;
		this.TXingzhengfawenFujians = TXingzhengfawenFujians;
		this.TXingzhengfawenZhengwens=TXingzhengfawenZhengwens;
		this.TXingzhengfawenBeizhus=TXingzhengfawenBeizhus;
		this.fengfadate = fengfadate;
	}

	// Property accessors
	
	
	
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Integer getFlowid() {
		return this.flowid;
	}

	public void setFlowid(Integer flowid) {
		this.flowid = flowid;
	}

	public String getBiaoti() {
		return this.biaoti;
	}

	public void setBiaoti(String biaoti) {
		this.biaoti = biaoti;
	}

	public String getZhusong() {
		return this.zhusong;
	}

	public void setZhusong(String zhusong) {
		this.zhusong = zhusong;
	}

	public String getChaosong() {
		return this.chaosong;
	}

	public void setChaosong(String chaosong) {
		this.chaosong = chaosong;
	}

	public String getZhutici() {
		return this.zhutici;
	}

	public void setZhutici(String zhutici) {
		this.zhutici = zhutici;
	}

	public String getMiji() {
		return this.miji;
	}

	public void setMiji(String miji) {
		this.miji = miji;
	}

	public String getFujian() {
		return this.fujian;
	}

	public void setFujian(String fujian) {
		this.fujian = fujian;
	}

	public Integer getNigaorenid() {
		return this.nigaorenid;
	}

	public void setNigaorenid(Integer nigaorenid) {
		this.nigaorenid = nigaorenid;
	}

	public String getNigaorenname() {
		return this.nigaorenname;
	}

	public void setNigaorenname(String nigaorenname) {
		this.nigaorenname = nigaorenname;
	}

	public String getChengbanbumen() {
		return this.chengbanbumen;
	}

	public void setChengbanbumen(String chengbanbumen) {
		this.chengbanbumen = chengbanbumen;
	}

	public String getWenhaotype() {
		return this.wenhaotype;
	}

	public void setWenhaotype(String wenhaotype) {
		this.wenhaotype = wenhaotype;
	}

	public String getWenhaonumber() {
		return this.wenhaonumber;
	}

	public void setWenhaonumber(String wenhaonumber) {
		this.wenhaonumber = wenhaonumber;
	}

	public Date getFawendatetime() {
		return this.fawendatetime;
	}

	public void setFawendatetime(Date fawendatetime) {
		this.fawendatetime = fawendatetime;
	}

	public String getJingshouren() {
		return this.jingshouren;
	}

	public void setJingshouren(String jingshouren) {
		this.jingshouren = jingshouren;
	}

	public String getDocname() {
		return this.docname;
	}

	public void setDocname(String docname) {
		this.docname = docname;
	}

	public String getZhuangta() {
		return this.zhuangta;
	}

	public void setZhuangta(String zhuangta) {
		this.zhuangta = zhuangta;
	}

	public Set getTXingzhengfawenYijians() {
		return this.TXingzhengfawenYijians;
	}

	public void setTXingzhengfawenYijians(Set xingzhengfawenYijians) {
		TXingzhengfawenYijians = xingzhengfawenYijians;
	}

	public Set getTXingzhengfawenFujians() {
		return TXingzhengfawenFujians;
	}

	public void setTXingzhengfawenFujians(Set xingzhengfawenFujians) {
		TXingzhengfawenFujians = xingzhengfawenFujians;
	}

	public Set getTXingzhengfawenZhengwens() {
		return TXingzhengfawenZhengwens;
	}

	public void setTXingzhengfawenZhengwens(Set tXingzhengfawenZhengwens) {
		TXingzhengfawenZhengwens = tXingzhengfawenZhengwens;
	}

	public Set getTXingzhengfawenBeizhus() {
		return TXingzhengfawenBeizhus;
	}

	public void setTXingzhengfawenBeizhus(Set tXingzhengfawenBeizhus) {
		TXingzhengfawenBeizhus = tXingzhengfawenBeizhus;
	}

	public void addFujian(TXingzhengfawenFujian xingzhengfawenFujian)
	{
		xingzhengfawenFujian.setXingzhengfawenNeirong(this);
		TXingzhengfawenFujians.add(xingzhengfawenFujian);
		
	}
	public void addZhengwen(TXingzhengfawenZhengwen xingzhengfawenZhengwen)
	{
		xingzhengfawenZhengwen.setXingzhengfawenNeirong(this);
		TXingzhengfawenZhengwens.add(xingzhengfawenZhengwen);
		
	}
	public void addBeizhu(TXingzhengfawenBeizhu xingzhengfawenBeizhu)
	{
		xingzhengfawenBeizhu.setXingzhengfawenNeirong(this);
		TXingzhengfawenBeizhus.add(xingzhengfawenBeizhu);
		
	}

	public Long getTaskId() {
		return taskId;
	}

	public void setTaskId(Long taskId) {
		this.taskId = taskId;
	}

	public String getFenshu() {
		return fenshu;
	}

	public void setFenshu(String fenshu) {
		this.fenshu = fenshu;
	}

	public Integer getSortid() {
		return sortid;
	}

	public void setSortid(Integer sortid) {
		this.sortid = sortid;
	}

	public String getJingshoubumen() {
		return jingshoubumen;
	}

	public void setJingshoubumen(String jingshoubumen) {
		this.jingshoubumen = jingshoubumen;
	}

	public Date getQiChaoShiJian() {
		return qiChaoShiJian;
	}

	public void setQiChaoShiJian(Date qiChaoShiJian) {
		this.qiChaoShiJian = qiChaoShiJian;
	}

	public Integer getIsguidang() {
		return isguidang;
	}

	public void setIsguidang(Integer isguidang) {
		this.isguidang = isguidang;
	}

	public String getChaobao() {
		return chaobao;
	}

	public void setChaobao(String chaobao) {
		this.chaobao = chaobao;
	}

	public Integer getIsDown() {
		return isDown;
	}

	public void setIsDown(Integer isDown) {
		this.isDown = isDown;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getWentype() {
		return wentype;
	}

	public void setWentype(String wentype) {
		this.wentype = wentype;
	}

	public Integer getWenhao() {
		return wenhao;
	}

	public void setWenhao(Integer wenhao) {
		this.wenhao = wenhao;
	}

	public Integer getWenyear() {
		return wenyear;
	}

	public void setWenyear(Integer wenyear) {
		this.wenyear = wenyear;
	}

	public String getHaotype() {
		return haotype;
	}

	public void setHaotype(String haotype) {
		this.haotype = haotype;
	}

	public String getDangqianhuanjie() {
		String temp = "";
		if("办公室主任二次复核".equals(dangqianhuanjie)){
			temp = "审核";
		}else if("办公室主任复核".equals(dangqianhuanjie)){
			temp =  "审核";
		}else if("签发".equals(dangqianhuanjie)){
			temp =  "待签发";
		}else if("拟稿人修改内容".equals(dangqianhuanjie)){
			temp =  "修改";
		}else{
			temp =  dangqianhuanjie;
		}
		
		if ("封发".equals(temp)) {
			;
		}else{
			temp = "<font class=\"green\">"+temp+"</font>";
		}
		
		return temp;
	}

	public void setDangqianhuanjie(String dangqianhuanjie) {
		this.dangqianhuanjie = dangqianhuanjie;
	}

	public String getTemptype() {
		return temptype;
	}

	public void setTemptype(String temptype) {
		this.temptype = temptype;
	}

	public String getBiaoTiDisplay(){
		if(biaoti.length() > 13){
			return biaoti.substring(0,12)+"...";
		}else{
			return biaoti;
		}
	}

	public Integer getIstaohong() {
		return istaohong;
	}

	public void setIstaohong(Integer istaohong) {
		this.istaohong = istaohong;
	}	
	
	
}